'''
    定义(元素1，元素2....)
    不可变
    查询

    下标 长度 切片 循环


'''

students = ("小张","小明","小李","小明","小明","小明")
print(students[0])
print(len(students))
print(students[1:2])

for s in students:
    print(s)


for i in range(0,len(students)):
    print(students[i])

print(students.count("小明"))
print(students.index("小李"))




email = input("请输入您的邮箱")
if email.endswith(".com") and email.find("@") != -1:
    print("邮箱格式正确")
else:
    print("邮箱格式错误")







